package com.cti.commons.delayqueue.repository.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

import com.cti.commons.delayqueue.repository.DelaySendMessageLog;
import com.cti.commons.delayqueue.repository.DelaySendMessageRepository;

/**
 * @author et.wang
 * @description:
 * @date 2022/11/23 09:42
 */
@Service
public class DelaySendMessageRepositoryImpl implements DelaySendMessageRepository {

    @Autowired
    private MongoTemplate mongoTemplate;

    @Override
    public void save(DelaySendMessageLog log) {
        mongoTemplate.save(log);
    }

}
